package com.wanmait.recruitment.mapper;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.wanmait.recruitment.pojo.Collection;
import com.wanmait.recruitment.pojo.Job;
import com.wanmait.recruitment.pojo.Userinfo;

import java.util.List;

public interface CollectionMapper {
    int deleteById(Integer id);

    int insert(Collection collection);

    int insertSelective(Collection record);

    Collection selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Collection record);

    int updateByPrimaryKey(Collection record);

    Collection selectByJobAndUserinfo(Job job, Userinfo userinfo);

    void deleteByColl(Collection collection);

    List<Collection> selectByUserinfo(Userinfo userinfo);
}